package com.techedge.insidetrack

class Tracksession {

	String trackNumber
	Date starTime
	Date endTime 
	String description
	String tags
	
	static belongsTo = [ insideTrack : Insidetrack ]
	static hasMany = [ hosts : User ]
	
	static constraints = {
		trackNumber(blank:false, nullable:false, matches: "[0-9]+")
		description(blank:true, nullable:true, size:3..255)
		tags(blank:true, nullable:true, size:0..40)
	}

	String toString(){
		return trackNumber;
	}
	
}
